<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>收到的礼物</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    :root {
      --primary: #4F46E5;
      --secondary: #6B7280;
      --light: #F9FAFB;
      --dark: #1F2937;
      --white: #FFFFFF;
      --border: #E5E7EB;
      --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
      
      /* 不同风格主题色 */
      --style1: #3B82F6; /* 科技蓝 */
      --style2: #EC4899; /* 活力粉 */
      --style3: #10B981; /* 生态绿 */
      --style4: #F59E0B; /* 温暖橙 */
      --style5: #8B5CF6; /* 梦幻紫 */
      --style6: #111827; /* 商务黑 */
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: #f5f5f5;
      color: var(--dark);
      min-height: 100vh;
      padding: 0;
      margin: 0;
      transition: background-color 0.3s ease;
    }
    
    .container {
      max-width: 420px;
      margin: 0 auto;
      background-color: var(--white);
      min-height: 100vh;
      box-shadow: var(--shadow);
      overflow: hidden;
      position: relative;
      transition: background-color 0.3s ease;
    }
    
    /* 主页面容器 */
    .gift-page {
      display: none;
      min-height: 100vh;
      flex-direction: column;
    }
    
    .gift-page.active {
      display: flex;
      animation: fadeIn 0.3s ease forwards;
    }
    
    /* 顶部导航栏 */
    .page-header {
      padding: 18px 20px;
      position: relative;
      text-align: center;
      border-bottom: 1px solid var(--border);
      background-color: var(--white);
      transition: all 0.3s ease;
      z-index: 10;
    }
    
    .page-title {
      font-size: 18px;
      font-weight: 600;
      margin: 0;
    }
    
    .header-back {
      position: absolute;
      left: 20px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--dark);
      font-size: 20px;
      cursor: pointer;
      transition: color 0.3s ease, transform 0.2s ease;
    }
    
    .header-back:active {
      transform: translateY(-50%) scale(0.9);
    }
    
    .header-actions {
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
    }
    
    .header-btn {
      background: none;
      border: none;
      color: var(--dark);
      font-size: 18px;
      cursor: pointer;
      margin-left: 15px;
      transition: color 0.3s ease, transform 0.2s ease;
    }
    
    .header-btn:active {
      transform: scale(0.9);
    }
    
    /* 礼物列表 */
    .gift-list {
      flex-grow: 1;
      overflow-y: auto;
      transition: background-color 0.3s ease;
      padding-bottom: 20px;
    }
    
    .gift-item {
      padding: 16px 20px;
      border-bottom: 1px solid var(--border);
      transition: background-color 0.2s ease, transform 0.2s ease;
      position: relative;
      display: flex;
      align-items: flex-start;
    }
    
    .gift-item:active {
      transform: scale(0.995);
    }
    
    .gift-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      object-fit: cover;
      margin-right: 12px;
      border: 2px solid transparent;
      transition: all 0.3s ease;
    }
    
    .gift-content {
      flex-grow: 1;
    }
    
    .gift-sender {
      font-weight: 600;
      margin-bottom: 4px;
      display: flex;
      align-items: center;
    }
    
    .gift-time {
      font-size: 12px;
      color: var(--secondary);
      margin-left: 8px;
      font-weight: normal;
    }
    
    .gift-info {
      display: flex;
      align-items: center;
      margin-bottom: 6px;
    }
    
    .gift-icon {
      width: 32px;
      height: 32px;
      background-color: rgba(79, 70, 229, 0.1);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 10px;
      color: var(--primary);
      font-size: 18px;
    }
    
    .gift-name {
      font-size: 15px;
    }
    
    .gift-message {
      font-size: 14px;
      color: var(--secondary);
      padding-left: 42px; /* 与礼物图标对齐 */
    }
    
    .gift-actions {
      display: flex;
      margin-top: 8px;
      padding-left: 42px; /* 与礼物图标对齐 */
    }
    
    .gift-btn {
      background: none;
      border: none;
      color: var(--secondary);
      font-size: 13px;
      cursor: pointer;
      padding: 4px 8px;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
    }
    
    .gift-btn i {
      margin-right: 4px;
      font-size: 14px;
    }
    
    .gift-btn:hover {
      color: var(--primary);
    }
    
    .gift-btn.thank {
      margin-right: 15px;
    }
    
    /* 空状态 */
    .empty-state {
      padding: 60px 20px;
      text-align: center;
      color: var(--secondary);
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    
    .empty-icon {
      font-size: 60px;
      margin-bottom: 20px;
      opacity: 0.3;
      animation: float 3s ease-in-out infinite;
    }
    
    @keyframes float {
      0% { transform: translateY(0px); }
      50% { transform: translateY(-10px); }
      100% { transform: translateY(0px); }
    }
    
    .empty-text {
      font-size: 16px;
      margin-bottom: 20px;
    }
    
    .empty-btn {
      background-color: var(--primary);
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 20px;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    /* 样式切换器 */
    .style-switcher {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1010;
      background-color: white;
      border-radius: 8px;
      box-shadow: var(--shadow);
      overflow: hidden;
      width: 180px;
      transition: all 0.3s ease;
      transform: translateX(0);
      opacity: 1;
    }
    
    .style-switcher.hidden {
      transform: translateX(200px);
      opacity: 0;
      pointer-events: none;
    }
    
    .switcher-toggle {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1020;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: var(--primary);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow);
      border: none;
      font-size: 18px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    .switcher-header {
      padding: 10px 16px;
      font-size: 14px;
      font-weight: 600;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .switcher-close {
      background: none;
      border: none;
      color: var(--secondary);
      font-size: 16px;
      cursor: pointer;
    }
    
    .switcher-option {
      padding: 12px 16px;
      font-size: 14px;
      cursor: pointer;
      transition: background-color 0.2s;
      display: flex;
      align-items: center;
    }
    
    .switcher-color {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      margin-right: 10px;
    }
    
    .switcher-option:hover {
      background-color: #f9f9f9;
    }
    
    .switcher-option.active {
      background-color: var(--primary);
      color: white;
    }
    
    /* 风格1：科技蓝 */
    .style-1 {
      --primary: var(--style1);
    }
    
    .style-1 .gift-item:hover {
      background-color: rgba(59, 130, 246, 0.03);
    }
    
    .style-1 .gift-icon {
      background-color: rgba(59, 130, 246, 0.1);
      color: var(--primary);
    }
    
    /* 风格2：活力粉 */
    .style-2 {
      --primary: var(--style2);
    }
    
    .style-2 .page-header {
      background: linear-gradient(45deg, var(--primary), #F472B6);
      color: white;
      border-bottom: none;
      box-shadow: 0 2px 15px rgba(236, 72, 153, 0.2);
    }
    
    .style-2 .header-back,
    .style-2 .header-btn,
    .style-2 .page-title {
      color: white;
    }
    
    .style-2 .gift-item {
      border-radius: 12px;
      margin: 10px;
      border-bottom: none;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    }
    
    .style-2 .gift-list {
      background-color: #FAFAFA;
      padding-top: 5px;
    }
    
    .style-2 .gift-icon {
      background-color: rgba(236, 72, 153, 0.1);
      color: var(--primary);
    }
    
    .style-2 .gift-avatar {
      border-color: rgba(236, 72, 153, 0.2);
    }
    
    /* 风格3：生态绿 */
    .style-3 {
      --primary: var(--style3);
    }
    
    .style-3 .container {
      background-color: #F8FAFC;
    }
    
    .style-3 .gift-item {
      padding-left: 28px;
      position: relative;
    }
    
    .style-3 .gift-item::before {
      content: '';
      position: absolute;
      left: 20px;
      top: 32px;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background-color: var(--primary);
    }
    
    .style-3 .gift-icon {
      background-color: rgba(16, 185, 129, 0.1);
      color: var(--primary);
    }
    
    /* 风格4：温暖橙 */
    .style-4 {
      --primary: var(--style4);
    }
    
    .style-4 .page-header {
      background-color: white;
      border-bottom: none;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    
    .style-4 .gift-item {
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .style-4 .gift-sender {
      color: var(--primary);
    }
    
    .style-4 .gift-icon {
      background-color: rgba(245, 158, 11, 0.1);
      color: var(--primary);
    }
    
    /* 风格5：梦幻紫 */
    .style-5 {
      --primary: var(--style5);
    }
    
    .style-5 .container {
      background-color: #FCFAFF;
    }
    
    .style-5 .gift-item {
      padding: 20px;
    }
    
    .style-5 .gift-message {
      color: #6B7280;
    }
    
    .style-5 .gift-sender {
      color: #4C1D95;
    }
    
    .style-5 .gift-icon {
      background-color: rgba(139, 92, 246, 0.1);
      color: var(--primary);
      border-radius: 12px;
    }
    
    .style-5 .empty-btn {
      border-radius: 30px;
      box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
    }
    
    /* 风格6：商务黑 */
    .style-6 {
      --primary: #60A5FA;
      --secondary: #9CA3AF;
      --light: #1F2937;
      --dark: #F9FAFB;
      --white: #111827;
      --border: #374151;
      --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    
    .style-6 body {
      background-color: #030712;
    }
    
    .style-6 .container {
      background-color: var(--white);
    }
    
    .style-6 .page-header {
      background-color: var(--light);
      border-bottom-color: var(--border);
    }
    
    .style-6 .header-back,
    .style-6 .header-btn,
    .style-6 .page-title {
      color: var(--dark);
    }
    
    .style-6 .gift-item {
      border-bottom-color: var(--border);
    }
    
    .style-6 .gift-item:hover {
      background-color: rgba(255, 255, 255, 0.05);
    }
    
    .style-6 .gift-sender,
    .style-6 .gift-name {
      color: #E5E7EB;
    }
    
    .style-6 .style-switcher {
      background-color: var(--light);
    }
    
    .style-6 .switcher-header {
      border-bottom-color: var(--border);
      color: var(--dark);
    }
    
    .style-6 .switcher-option {
      color: var(--dark);
    }
    
    .style-6 .switcher-option:hover {
      background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* 动画效果 */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    /* 响应式调整 */
    @media (max-width: 360px) {
      .gift-actions {
        flex-wrap: wrap;
      }
      
      .gift-btn {
        margin-bottom: 5px;
      }
    }
  </style>
</head>
<body class="style-1">
  <!-- 样式切换器 -->
  <button class="switcher-toggle">
    <i class="fa fa-paint-brush"></i>
  </button>
  
  <div class="style-switcher hidden">
    <div class="switcher-header">
      选择礼物页面样式
      <button class="switcher-close"><i class="fa fa-times"></i></button>
    </div>
    <div class="switcher-option active" data-style="1">
      <span class="switcher-color" style="background-color: var(--style1);"></span>
      科技蓝
    </div>
    <div class="switcher-option" data-style="2">
      <span class="switcher-color" style="background-color: var(--style2);"></span>
      活力粉
    </div>
    <div class="switcher-option" data-style="3">
      <span class="switcher-color" style="background-color: var(--style3);"></span>
      生态绿
    </div>
    <div class="switcher-option" data-style="4">
      <span class="switcher-color" style="background-color: var(--style4);"></span>
      温暖橙
    </div>
    <div class="switcher-option" data-style="5">
      <span class="switcher-color" style="background-color: var(--style5);"></span>
      梦幻紫
    </div>
    <div class="switcher-option" data-style="6">
      <span class="switcher-color" style="background-color: var(--style6);"></span>
      商务黑
    </div>
  </div>
  
  <div class="container">
    <!-- 风格1：科技蓝 -->
    <div class="gift-page active" id="page1">
      <div class="page-header">
        <button class="header-back"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">收到的礼物</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-gift"></i></button>
          <button class="header-btn"><i class="fa fa-ellipsis-v"></i></button>
        </div>
      </div>
      
      <div class="gift-list">
        <div class="gift-item">
          <img src="https://picsum.photos/id/64/200/200" alt="用户头像" class="gift-avatar">
          <div class="gift-content">
            <div class="gift-sender">
              张明 <span class="gift-time">今天 08:30</span>
            </div>
            <div class="gift-info">
              <div class="gift-icon"><i class="fa fa-diamond"></i></div>
              <div class="gift-name">送你一颗闪亮钻石</div>
            </div>
            <div class="gift-message">
              恭喜你获得本周之星，这是给你的奖励！
            </div>
            <div class="gift-actions">
              <button class="gift-btn thank"><i class="fa fa-heart"></i> 感谢</button>
              <button class="gift-btn reply"><i class="fa fa-reply"></i> 回复</button>
            </div>
          </div>
        </div>
        
        <div class="gift-item">
          <img src="https://picsum.photos/id/65/200/200" alt="用户头像" class="gift-avatar">
          <div class="gift-content">
            <div class="gift-sender">
              李华 <span class="gift-time">昨天 15:42</span>
            </div>
            <div class="gift-info">
              <div class="gift-icon"><i class="fa fa-coffee"></i></div>
              <div class="gift-name">请你喝杯咖啡</div>
            </div>
            <div class="gift-message">
              谢谢你的帮助，这是我的一点心意
            </div>
            <div class="gift-actions">
              <button class="gift-btn thank"><i class="fa fa-heart"></i> 感谢</button>
              <button class="gift-btn reply"><i class="fa fa-reply"></i> 回复</button>
            </div>
          </div>
        </div>
        
        <div class="gift-item">
          <img src="https://picsum.photos/id/66/200/200" alt="用户头像" class="gift-avatar">
          <div class="gift-content">
            <div class="gift-sender">
              王芳 <span class="gift-time">昨天 10:15</span>
            </div>
            <div class="gift-info">
              <div class="gift-icon"><i class="fa fa-book"></i></div>
              <div class="gift-name">送你一本好书</div>
            </div>
            <div class="gift-message">
              觉得这本书很适合你，希望你喜欢
            </div>
            <div class="gift-actions">
              <button class="gift-btn thank"><i class="fa fa-heart"></i> 感谢</button>
              <button class="gift-btn reply"><i class="fa fa-reply"></i> 回复</button>
            </div>
          </div>
        </div>
        
        <div class="gift-item">
          <img src="https://picsum.photos/id/67/200/200" alt="用户头像" class="gift-avatar">
          <div class="gift-content">
            <div class="gift-sender">
              赵伟 <span class="gift-time">3天前</span>
            </div>
            <div class="gift-info">
              <div class="gift-icon"><i class="fa fa-music"></i></div>
              <div class="gift-name">送你一首音乐</div>
            </div>
            <div class="gift-message">
              听到这首歌就想起你，分享给你
            </div>
            <div class="gift-actions">
              <button class="gift-btn thank"><i class="fa fa-heart"></i> 感谢</button>
              <button class="gift-btn reply"><i class="fa fa-reply"></i> 回复</button>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 风格2：活力粉 -->
    <div class="gift-page" id="page2">
      <div class="page-header">
        <button class="header-back"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">收到的礼物</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-gift"></i></button>
          <button class="header-btn"><i class="fa fa-ellipsis-v"></i></button>
        </div>
      </div>
      
      <div class="gift-list">
        <div class="gift-item">
          <img src="https://picsum.photos/id/68/200/200" alt="用户头像" class="gift-avatar">
          <div class="gift-content">
            <div class="gift-sender">
              林小雨 <span class="gift-time">今天 12:30</span>
            </div>
            <div class="gift-info">
              <div class="gift-icon"><i class="fa fa-heart"></i></div>
              <div class="gift-name">送你一颗爱心</div>
            </div>
            <div class="gift-message">
              你的分享太精彩了，爱你哟~
            </div>
            <div class="gift-actions">
              <button class="gift-btn thank"><i class="fa fa-heart"></i> 感谢</button>
              <button class="gift-btn reply"><i class="fa fa-reply"></i> 回复</button>
            </div>
          </div>
        </div>
        
        <div class="gift-item">
          <img src="https://picsum.photos/id/69/200/200" alt="用户头像" class="gift-avatar">
          <div class="gift-content">
            <div class="gift-sender">
              陈萌萌 <span class="gift-time">昨天 19:45</span>
            </div>
            <div class="gift-info">
              <div class="gift-icon"><i class="fa fa-flower"></i></div>
              <div class="gift-name">送你一束鲜花</div>
            </div>
            <div class="gift-message">
              看到这束花就想到你，希望你天天开心
            </div>
            <div class="gift-actions">
              <button class="gift-btn thank"><i class="fa fa-heart"></i> 感谢</button>
              <button class="gift-btn reply"><i class="fa fa-reply"></i> 回复</button>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 风格3：生态绿 -->
    <div class="gift-page" id="page3">
      <div class="page-header">
        <button class="header-back"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">收到的礼物</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-gift"></i></button>
          <button class="header-btn"><i class="fa fa-ellipsis-v"></i></button>
        </div>
      </div>
      
      <div class="gift-list">
        <div class="gift-item">
          <img src="https://picsum.photos/id/70/200/200" alt="用户头像" class="gift-avatar">
          <div class="gift-content">
            <div class="gift-sender">
              李建国 <span class="gift-time">今天 09:15</span>
            </div>
            <div class="gift-info">
              <div class="gift-icon"><i class="fa fa-tree"></i></div>
              <div class="gift-name">送你一棵小树苗</div>
            </div>
            <div class="gift-message">
              一起为环保贡献力量，这是我们种下的希望
            </div>
            <div class="gift-actions">
              <button class="gift-btn thank"><i class="fa fa-heart"></i> 感谢</button>
              <button class="gift-btn reply"><i class="fa fa-reply"></i> 回复</button>
            </div>
          </div>
        </div>
        
        <div class="gift-item">
          <img src="https://picsum.photos/id/71/200/200" alt="用户头像" class="gift-avatar">
          <div class="gift-content">
            <div class="gift-sender">
              环保协会 <span class="gift-time">昨天 14:30</span>
            </div>
            <div class="gift-info">
              <div class="gift-icon"><i class="fa fa-leaf"></i></div>
              <div class="gift-name">送你一片绿叶勋章</div>
            </div>
            <div class="gift-message">
              感谢你对环保活动的支持，授予你绿叶勋章
            </div>
            <div class="gift-actions">
              <button class="gift-btn thank"><i class="fa fa-heart"></i> 感谢</button>
              <button class="gift-btn reply"><i class="fa fa-reply"></i> 回复</button>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 风格4：温暖橙 -->
    <div class="gift-page" id="page4">
      <div class="page-header">
        <button class="header-back"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">收到的礼物</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-gift"></i></button>
          <button class="header-btn"><i class="fa fa-ellipsis-v"></i></button>
        </div>
      </div>
      
      <div class="gift-list">
        <div class="gift-item">
          <img src="https://picsum.photos/id/72/200/200" alt="用户头像" class="gift-avatar">
          <div class="gift-content">
            <div class="gift-sender">
              赵大厨 <span class="gift-time">今天 11:20</span>
            </div>
            <div class="gift-info">
              <div class="gift-icon"><i class="fa fa-cutlery"></i></div>
              <div class="gift-name">送你一份美食</div>
            </div>
            <div class="gift-message">
              新研发的菜品，送你尝尝鲜
            </div>
            <div class="gift-actions">
              <button class="gift-btn thank"><i class="fa fa-heart"></i> 感谢</button>
              <button class="gift-btn reply"><i class="fa fa-reply"></i> 回复</button>
            </div>
          </div>
        </div>
        
        <div class="gift-item">
          <img src="https://picsum.photos/id/73/200/200" alt="用户头像" class="gift-avatar">
          <div class="gift-content">
            <div class="gift-sender">
              烘焙小屋 <span class="gift-time">昨天 16:40</span>
            </div>
            <div class="gift-info">
              <div class="gift-icon"><i class="fa fa-birthday-cake"></i></div>
              <div class="gift-name">送你一块蛋糕</div>
            </div>
            <div class="gift-message">
              新品上市，免费试吃，希望你喜欢
            </div>
            <div class="gift-actions">
              <button class="gift-btn thank"><i class="fa fa-heart"></i> 感谢</button>
              <button class="gift-btn reply"><i class="fa fa-reply"></i> 回复</button>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 风格5：梦幻紫 -->
    <div class="gift-page" id="page5">
      <div class="page-header">
        <button class="header-back"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">收到的礼物</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-gift"></i></button>
          <button class="header-btn"><i class="fa fa-ellipsis-v"></i></button>
        </div>
      </div>
      
      <div class="gift-list">
        <div class="gift-item">
          <img src="https://picsum.photos/id/74/200/200" alt="用户头像" class="gift-avatar">
          <div class="gift-content">
            <div class="gift-sender">
              吴艺 <span class="gift-time">今天 14:50</span>
            </div>
            <div class="gift-info">
              <div class="gift-icon"><i class="fa fa-paint-brush"></i></div>
              <div class="gift-name">送你一幅画作</div>
            </div>
            <div class="gift-message">
              特意为你画的，希望你能感受到艺术的美好
            </div>
            <div class="gift-actions">
              <button class="gift-btn thank"><i class="fa fa-heart"></i> 感谢</button>
              <button class="gift-btn reply"><i class="fa fa-reply"></i> 回复</button>
            </div>
          </div>
        </div>
        
        <div class="gift-item">
          <img src="https://picsum.photos/id/75/200/200" alt="用户头像" class="gift-avatar">
          <div class="gift-content">
            <div class="gift-sender">
              音乐达人 <span class="gift-time">3天前</span>
            </div>
            <div class="gift-info">
              <div class="gift-icon"><i class="fa fa-headphones"></i></div>
              <div class="gift-name">送你会员体验</div>
            </div>
            <div class="gift-message">
              发现一首很适合你的歌，送你会员听完整版
            </div>
            <div class="gift-actions">
              <button class="gift-btn thank"><i class="fa fa-heart"></i> 感谢</button>
              <button class="gift-btn reply"><i class="fa fa-reply"></i> 回复</button>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 风格6：商务黑 -->
    <div class="gift-page" id="page6">
      <div class="page-header">
        <button class="header-back"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">收到的礼物</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-gift"></i></button>
          <button class="header-btn"><i class="fa fa-ellipsis-v"></i></button>
        </div>
      </div>
      
      <div class="gift-list">
        <div class="gift-item">
          <img src="https://picsum.photos/id/76/200/200" alt="用户头像" class="gift-avatar">
          <div class="gift-content">
            <div class="gift-sender">
              张总 <span class="gift-time">今天 09:00</span>
            </div>
            <div class="gift-info">
              <div class="gift-icon"><i class="fa fa-trophy"></i></div>
              <div class="gift-name">送你年度成就奖</div>
            </div>
            <div class="gift-message">
              恭喜你完成年度目标，这份荣誉属于你
            </div>
            <div class="gift-actions">
              <button class="gift-btn thank"><i class="fa fa-heart"></i> 感谢</button>
              <button class="gift-btn reply"><i class="fa fa-reply"></i> 回复</button>
            </div>
          </div>
        </div>
        
        <div class="gift-item">
          <img src="https://picsum.photos/id/77/200/200" alt="用户头像" class="gift-avatar">
          <div class="gift-content">
            <div class="gift-sender">
              合作伙伴 <span class="gift-time">昨天 15:30</span>
            </div>
            <div class="gift-info">
              <div class="gift-icon"><i class="fa fa-handshake-o"></i></div>
              <div class="gift-name">送你合作纪念章</div>
            </div>
            <div class="gift-message">
              感谢一年来的精诚合作，期待未来更多合作
            </div>
            <div class="gift-actions">
              <button class="gift-btn thank"><i class="fa fa-heart"></i> 感谢</button>
              <button class="gift-btn reply"><i class="fa fa-reply"></i> 回复</button>
            </div>
          </div>
        </div>
        
        <div class="gift-item">
          <img src="https://picsum.photos/id/78/200/200" alt="用户头像" class="gift-avatar">
          <div class="gift-content">
            <div class="gift-sender">
              团队成员 <span class="gift-time">3天前</span>
            </div>
            <div class="gift-info">
              <div class="gift-icon"><i class="fa fa-star"></i></div>
              <div class="gift-name">送你团队之星</div>
            </div>
            <div class="gift-message">
              你是团队的核心，这份荣誉属于你
            </div>
            <div class="gift-actions">
              <button class="gift-btn thank"><i class="fa fa-heart"></i> 感谢</button>
              <button class="gift-btn reply"><i class="fa fa-reply"></i> 回复</button>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  
  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 当前状态
    let currentStyle = 1;
    
    // DOM元素
    const switcherToggle = document.querySelector('.switcher-toggle');
    const switcher = document.querySelector('.style-switcher');
    const switcherClose = document.querySelector('.switcher-close');
    const switcherOptions = document.querySelectorAll('.switcher-option');
    const giftPages = {
      1: document.getElementById('page1'),
      2: document.getElementById('page2'),
      3: document.getElementById('page3'),
      4: document.getElementById('page4'),
      5: document.getElementById('page5'),
      6: document.getElementById('page6')
    };
    const bodyElement = document.body;
    
    // 初始化
    function init() {
      // 切换器控制
      switcherToggle.addEventListener('click', toggleSwitcher);
      switcherClose.addEventListener('click', toggleSwitcher);
      
      // 切换样式
      switcherOptions.forEach(option => {
        option.addEventListener('click', function() {
          const style = parseInt(this.getAttribute('data-style'));
          switchStyle(style);
          toggleSwitcher();
        });
      });
      
      // 初始化按钮事件
      initButtons();
    }
    
    // 切换样式选择器显示/隐藏
    function toggleSwitcher() {
      switcher.classList.toggle('hidden');
    }
    
    // 初始化按钮事件
    function initButtons() {
      // 感谢按钮
      document.querySelectorAll('.gift-btn.thank').forEach(btn => {
        btn.addEventListener('click', function(e) {
          e.stopPropagation();
          const sender = this.closest('.gift-item').querySelector('.gift-sender').textContent.split(' ')[0];
          
          // 改变按钮状态
          this.innerHTML = '<i class="fa fa-check"></i> 已感谢';
          this.style.color = 'var(--primary)';
          
          alert(`已向 ${sender} 表示感谢`);
        });
      });
      
      // 回复按钮
      document.querySelectorAll('.gift-btn.reply').forEach(btn => {
        btn.addEventListener('click', function(e) {
          e.stopPropagation();
          const sender = this.closest('.gift-item').querySelector('.gift-sender').textContent.split(' ')[0];
          const replyText = prompt(`回复 ${sender}：`);
          if (replyText !== null && replyText.trim() !== '') {
            alert(`已回复 ${sender}：${replyText}`);
          }
        });
      });
      
      // 礼物按钮
      document.querySelectorAll('.header-actions .header-btn.fa-gift').forEach(btn => {
        btn.addEventListener('click', function() {
          alert('跳转到赠送礼物页面');
        });
      });
      
      // 更多按钮
      document.querySelectorAll('.header-actions .header-btn.fa-ellipsis-v').forEach(btn => {
        btn.addEventListener('click', function() {
          alert('更多操作：礼物设置、批量管理等');
        });
      });
      
      // 返回按钮
      document.querySelectorAll('.header-back').forEach(btn => {
        btn.addEventListener('click', function() {
          alert('返回个人中心');
        });
      });
      
      // 点击礼物项查看详情
      document.querySelectorAll('.gift-item').forEach(item => {
        item.addEventListener('click', function() {
          const sender = this.querySelector('.gift-sender').textContent.split(' ')[0];
          const giftName = this.querySelector('.gift-name').textContent;
          alert(`${sender} 赠送的${giftName}详情`);
        });
      });
    }
    
    // 关闭所有页面
    function closeAllPages() {
      Object.values(giftPages).forEach(page => {
        page.classList.remove('active');
      });
    }
    
    // 切换样式
    function switchStyle(style) {
      // 移除所有样式类
      bodyElement.classList.remove('style-1', 'style-2', 'style-3', 'style-4', 'style-5', 'style-6');
      
      // 添加当前样式类
      bodyElement.classList.add(`style-${style}`);
      
      // 更新当前样式
      currentStyle = style;
      
      // 更新切换器选中状态
      switcherOptions.forEach(option => {
        option.classList.remove('active');
        if (parseInt(option.getAttribute('data-style')) === style) {
          option.classList.add('active');
        }
      });
      
      // 显示对应页面
      closeAllPages();
      giftPages[style].classList.add('active');
    }
    
    // 键盘导航
    document.addEventListener('keydown', function(e) {
      if (e.key === 'ArrowLeft') {
        let prev = currentStyle - 1;
        if (prev < 1) prev = 6;
        switchStyle(prev);
      } else if (e.key === 'ArrowRight') {
        let next = currentStyle + 1;
        if (next > 6) next = 1;
        switchStyle(next);
      }
    });
    
    // 启动
    init();
  </script>
</body>
</html>
